<template>
  <div id="home" class="flex-cont flex-ver">
    <div id="header">这是头部</div>
    <div id="body" class="flex-item">
      <router-link to="/">去登陆</router-link>
      <router-link to='/home/page'>第一页</router-link>
    </div>
    <bar-bottom></bar-bottom>
  </div>
</template>
<style>

</style>
<script>
  import barBottom from '../components/barBottom.vue'

  export default {
    data () {
      return {
        selected: 'front',
        brands: []
      }
    },
    components: {
      'bar-bottom': barBottom
    },
    mounted: function () {
      this.$http.get('http://asset.hzxwwl.cn/v1/brands.shtml?accessToken=EDB2F311FF8746556AB0BD3D93EF7AF6').then(response => {
        this.brands = response.body.result
      }, response => {
        // error callback
      })
    }
  }
</script>
